﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="article.aspx.cs" Inherits="WebApp.admin.news.article" %>


<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>
       
    </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/main.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="/My97DatePicker/WdatePicker.js" charset="utf-8"></script>
<script language="javascript" type="text/javascript">


    ///验证角色表单
    function checkArticleForm() {
        var title = document.getElementById("txtArticleTilte");
        if (title.value == "") {
            alert("请输入文单标题！");
            title.focus();
            return false;
        }
        var author = document.getElementById("txtAuthor");
        if (author.value == "") {
            alert("请输入作者！");
            author.select();
            return false;
        }
        var content = document.getElementById("fckArticleContent");
        if (content.value == "") {
            alert("请输入文章内容！");
            content.select();
            return false;
        }
        var keywords = document.getElementById("txtKeywords");
        if (keywords.value == "") {
            alert("请输入页面关键词！");
            keywords.select();
            return false;
        }

        var description = document.getElementById("txtaDescription");
        if (description.value == "") {
            alert("请输入页面描述！");
            description.select();
            return false;
        }
        return true;
    }


</script>
</head>



<body class="body">
    <table class="main" cellpadding="0" cellspacing="0">

        <tr>

            <td class="td_middle_middle">
                <div class="maincontent">
                <div  class="navgater"><img src="../images/module.gif" width="20" height="22" alt=""/>
                  所在位置：文章管理->
                  <%= Request.QueryString["ot"] == "ed" ? "文章编辑" : "文章添加"%>
                  <a style=" display:block; float:right;" href="javascript:location.href=document.referrer;" ><img src="../images/history.gif" border="0" /></a>
                </div>
                    <form id="form1" runat="server">
                        <table cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td class="td_title">
                                    文章标题：</td>
                                <td class="td_content">
                                    <input id="txtArticleTilte" type="text" runat="server" />*</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    文章分类：</td>
                                <td class="td_content">
                                    <select id="selectType" name="articleType">
                                        <%Response.Write(ArticleTypeBind()); %>
                                    </select>
                                    *
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    作者：</td>
                                <td class="td_content">
                                    <input id="txtAuthor" type="text" runat="server" />*</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    是否发布：</td>
                                <td class="td_content">
                                    <input id="rdIsShow1" name="isShow" type="radio" runat="server" value="1" />是&nbsp;&nbsp;<input
                                        id="rdIsShow0" name="isShow" type="radio" runat="server" value="0" />否</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    文章内容：</td>
                                <td class="td_content">
                                    <FCKeditorV2:FCKeditor ID="fckArticleContent" runat="server" BasePath="/fckeditor/"
                                        Height="400px">
                                    </FCKeditorV2:FCKeditor>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    页面关键词：</td>
                                <td class="td_content">
                                    <input id="txtKeywords" type="text" runat="server" />*</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    页面描述：</td>
                                <td class="td_content">
                                    <textarea id="txtaDescription" cols="20" rows="2" runat="server"></textarea>*</td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Button ID="btnSubmit" runat="server" Text="确  定" OnClientClick=" return checkArticleForm();" CssClass="formButton" OnClick="btnSubmit_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
                                     <input id="btnBack" type="button" class="formButton" value=" 返  回 " onclick="javascript:location.href=document.referrer;"  /></td>
                            </tr>
                        </table>
                    </form>
                </div>
            </td>

        </tr>

    </table>
</body>
</html>
